#include "QtGuiDrag.h"
#include <QDebug>

QtGuiDrag::QtGuiDrag(QWidget *parent)
	: QWidget(parent)
{
	ui.setupUi(this);
	setAttribute(Qt::WA_DeleteOnClose);
}

QtGuiDrag::~QtGuiDrag()
{
	qDebug() << "QtGuiDrag::~QtGuiDrag()";
}

void QtGuiDrag::showText(QString text)
{
	ui.label->setText(text);
}


void QtGuiDrag::closeEvent(QCloseEvent *event)
{
	event->accept();
}